package com.cloudptt.api.product.device;

import android.media.AudioManager;

import com.cloudptt.api.product.log.Log;

public class PNC460 implements IDevice {

	private static final String BRAND = "Hytera";
	private static final String DEVICE = "PNC460";
	private static final String MODEL = "PNC460";

	public PNC460()
	{
		
	}
//	public static boolean isThisDev()
//	{
//		String brand = android.os.Build.BRAND;
//		String device = android.os.Build.DEVICE;
//		String model = android.os.Build.MODEL;
//		return isThisDev(brand,device,model);
//	}
	public static boolean isThisDev(String brand,String device,String model)
	{
		if(brand == null
				|| device == null
				|| model == null)
		{
			return false;
		}
		else if(BRAND.equals(brand)
				&& DEVICE.equals(device)
				&& MODEL.equals(model))
		{
			Log.setDebug(false);
			return true;
		}
		return false;
	}
	@Override
	public int getStreamType()
	{
		return AudioManager.STREAM_MUSIC;
	}
	@Override
	public int getRingerMode() {
		// TODO Auto-generated method stub
		return AudioManager.MODE_NORMAL;
	}
	@Override
	public int getPrivateCallMode() {
		// TODO Auto-generated method stub
		return AudioManager.MODE_IN_COMMUNICATION;
	}
	@Override
	public int getOtherCallMode() {
		// TODO Auto-generated method stub
		return AudioManager.MODE_NORMAL;
	}

	@Override
	public boolean isSpecialLockScreen() {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean isSupportCameraSwitch() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public boolean isSetSndAfterFloorTaken()
	{
		return true;
	}
	@Override
	public boolean isSupportAutoUpdate() {
		// TODO Auto-generated method stub
		return false;
	}
}
